Skip to content

Implement retry policy and enhance errored state handling#326

Merged
NiveditJain merged 21 commits into
FailproofAI:mainfrom
NiveditJain:retries
Aug 31, 2025
Merged

Implement retry policy and enhance errored state handling#326
NiveditJain merged 21 commits into
FailproofAI:mainfrom
NiveditJain:retries

Conversation

@NiveditJain
Copy link
Copy Markdown
Member

  • Added a retry policy model to manage state retries with configurable methods (fixed, linear, exponential).
  • Updated the errored state function to create a retry state if the maximum retries have not been reached, improving error recovery.
  • Enhanced the ErroredResponseModel to include a flag indicating whether a retry state was created.
  • Modified the GraphTemplate and State models to incorporate retry policy attributes, ensuring better state management.
  • Improved validation and error handling in the upsert_graph_template function to accommodate the new retry policy structure.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for retries in StateManager

2 participants